package com.ruoyi.project.mall.dao;


import com.ruoyi.project.mall.domain.MallNewDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 商城活动咨询
 * @author long
 * @email 499626561@qq.com
 * @date 2020-12-25 10:18:47
 */
@Mapper
public interface MallNewDao {

	MallNewDO get(String id);
	
	List<MallNewDO> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(MallNewDO mallNew);
	
	int update(MallNewDO mallNew);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

    List<MallNewDO> likeList(Map<String,Object> map);
    
    int likeListCount(Map<String,Object> map);

    List<Map<String, Object>> getHotNews();

	List<Map<String, Object>> getNewsList(Map<String, Object> params);
}
